package com.yxj.service.impl;

import com.yxj.domain.Emp;
import com.yxj.mapper.EmpMapper;
import com.yxj.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpMapper empMapper;


    @Override
    public Emp selectOne(Integer id) {
        return empMapper.findOne(id);
    }

    @Override
    public List<Emp> selectAll() {
        return empMapper.selectAll();
    }
}
